package com.info.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import com.info.model.UserModel;

public interface UserMapper {

    public UserModel getUser(@Param("username") String username,  @Param("password") String password);
    
    public void insertUser(UserModel user);
    public void deleteUser(UserModel user);
    public void insertUserTest(UserModel user);
    
    @Update("update user set password = #{password} where username = #{username}")
    public void updateUser(UserModel user);
    
    public List<UserModel> getAllUsers();
}
